package com.songshuai.webapi.crm.dto.response.customer;

import com.songshuai.webapi.baseapi.annotations.ExcelField;
import com.songshuai.webapi.baseapi.utils.DateUtil;
import com.songshuai.webapi.crm.util.Util;
import lombok.Data;

import java.util.Date;

@Data
public class CustomerListResDto {
    //学员id
    private String customId;

    //学员姓名
    @ExcelField(title = "学员姓名")
    private String customName;

    //性别：1男，2女，0未知
    //@ExcelField(title = "性别")
    private Integer sex;

    //手机号
    @ExcelField(title = "手机号")
    private String phone;

    //生日
    private Date birthday;
    @ExcelField(title = "出生日期")
    private String birthdayStr;
    public String getBirthdayStr(){
        return Util.ChangeDateToString(birthday, DateUtil.dateFormat);
    }

    //创建时间
    private Date createTime;
    @ExcelField(title = "创建时间")
    private String createTimeStr;
    public String getCreateTimeStr(){
        return Util.ChangeDateToString(createTime, DateUtil.dateFormat1);
    }

    //最后一次跟进时间
    private Date lastCommunicateTime;
    @ExcelField(title = "最后一次跟进")
    private String lastCommunicateTimeStr;
    public String getLastCommunicateTimeStr(){
        return Util.ChangeDateToString(lastCommunicateTime, DateUtil.dateFormat1);
    }

    //最后一次跟进内容id
    private String lastcommunicateId;

    //最后一次跟进
    private String lastCommunicate;

    //下一次跟进时间
    private Date nextCommunicateTime;
    @ExcelField(title = "下次跟进时间")
    private String nextCommunicateTimeStr;
    public String getNextCommunicateTimeStr(){
        return Util.ChangeDateToString(nextCommunicateTime, DateUtil.dateFormat1);
    }

    //有效来源
    private Integer effectSource;

    //来源名称
    @ExcelField(title = "学员来源")
    private String sourceName;

    //跟进人
    private Integer owner;

    //跟进人名称
    @ExcelField(title = "跟进人")
    private String ownerName;

    //跟进状态
    private Integer followStatus;

    //跟进状态名称
    @ExcelField(title = "跟进状态")
    private String followStatusName;

    //阶段
    private Integer stage;

    //年级
    private Integer grade;

    //阶段年级名称
    @ExcelField(title = "阶段年级")
    private String stageGradeName;

    //意向级别
    private Integer intend;

    //意向级别名称
    @ExcelField(title = "意向级别")
    private String intendName;

    //学校
    @ExcelField(title = "学校")
    private String school;

}
